package share.common.utils;

import org.eu.base.buffer.BufferFactory;
import org.eu.base.buffer.BufferPool;
import share.storage.io.File;

public class BufferManager {
	private static BufferPool<String> xmlBuffer = new BufferFactory<String>()
			.newBufferPool("exchange.xml.buffer", 4, true);

	private static BufferPool<File> fileBuffer = new BufferFactory<File>()
			.newBufferPool("system.file.buffer", 256, true);

	private static BufferPool<File> exFileBuffer = new BufferFactory<File>()
			.newBufferPool("system.exFile.buffer", 256, true);

	/**
	 * @return the xmlBuffer
	 */
	public static BufferPool<String> getXmlBuffer() {
		return xmlBuffer;
	}

	/**
	 * @return the fileBuffer
	 */
	public static BufferPool<File> getFileBuffer() {
		return fileBuffer;
	}

	/**
	 * @return the exFileBuffer
	 */
	public static BufferPool<File> getExFileBuffer() {
		return exFileBuffer;
	}

	
}
